<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>EquTemper: DDHC::MdlItem Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="$relpath<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="$relpath<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">EquTemper&#160;<span id="projectnumber">1.01</span></div>
   <div id="projectbrief">An equation editor.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_d_d_h_c_1_1_mdl_item.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">DDHC::MdlItem Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="DDHC::MdlItem" -->
<p>the QModelIndex has internalPointer() either NULL or pointing to a class tha inherits this one  
 <a href="class_d_d_h_c_1_1_mdl_item.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png"/> Inheritance diagram for DDHC::MdlItem:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="class_d_d_h_c_1_1_mdl_item__inherit__graph.png" border="0" usemap="#_d_d_h_c_1_1_mdl_item_inherit__map" alt="Inheritance graph"/></div>
<map name="_d_d_h_c_1_1_mdl_item_inherit__map" id="_d_d_h_c_1_1_mdl_item_inherit__map">
<area shape="rect" id="node3" href="class_d_d_h_c_1_1_a_class.html" title="DDHC::AClass" alt="" coords="5,83,117,112"/><area shape="rect" id="node5" href="class_d_d_h_c_1_1_c_inst.html" title="a container for class instances that inherit from DDHC:Ghost" alt="" coords="141,83,243,112"/><area shape="rect" id="node7" href="class_d_d_h_c_1_1_classes.html" title="embedded inside the DDHC::Model class; manages instances grouped by class name" alt="" coords="267,83,384,112"/><area shape="rect" id="node9" href="class_d_d_h_c_1_1_tree.html" title="DDHC::Tree" alt="" coords="408,83,504,112"/><area shape="rect" id="node11" href="class_d_d_h_c_1_1_var_inst.html" title="class representing a variable stored inside a class" alt="" coords="528,83,640,112"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png"/> Collaboration diagram for DDHC::MdlItem:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="class_d_d_h_c_1_1_mdl_item__coll__graph.png" border="0" usemap="#_d_d_h_c_1_1_mdl_item_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_d_d_h_c_1_1_mdl_item-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94">ItTypes</a> { <br/>
&#160;&#160;<a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94a969bdd13d9b7dc17095eb56fd303296b">ITY_CLASS_LIST</a>, 
<a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94a946968ee8473a7ca27a6ba67c4e7effa">ITY_TREE</a>, 
<a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94ab16e0b2e456e7e85e5ca7a6517d33e63">ITY_ACLASS</a>, 
<a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94a2fbb39b5bb685cff30a853a7f8a26960">ITY_CLASS_INST</a>, 
<br/>
&#160;&#160;<a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94a6347e77becbc59224c8e976c34c3ce90">ITY_VAR</a>
<br/>
 }</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af8da53df27af2c39f84ea7a2f98b3009">MdlItem</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor  <a href="#af8da53df27af2c39f84ea7a2f98b3009"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#aa7085b4339fbcce85aff9b486be1985a">~MdlItem</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">destructor  <a href="#aa7085b4339fbcce85aff9b486be1985a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#afe9d651b225320f91c8263ff88d06980">dbgDump</a> (int indent=0) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">print the content of this object to debug output  <a href="#afe9d651b225320f91c8263ff88d06980"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QVariant&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a3a0f603992a06338cde961bbf14f5b2c">data</a> (int i_nth)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">data associated with column i_nth  <a href="#a3a0f603992a06338cde961bbf14f5b2c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94">ItTypes</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a752a6e2bb494c8d9b309b720f1c7f5df">type</a> (void)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">item's type  <a href="#a752a6e2bb494c8d9b309b720f1c7f5df"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a343f1361495354b93e084f625ff7bb84">erase</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">remove all items from this list by deleting them  <a href="#a343f1361495354b93e084f625ff7bb84"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Simple querries</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#ad0b25e2c26ab42d127bff1faed1c38e6">next</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return next item  <a href="#ad0b25e2c26ab42d127bff1faed1c38e6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a85d9e780376f407ace6bb12961956b2a">prev</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return previous item  <a href="#a85d9e780376f407ace6bb12961956b2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a1bb5d7d40ea9fee2dff5170089850d2c">father</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return father item  <a href="#a1bb5d7d40ea9fee2dff5170089850d2c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#adad4d58b1fcf860b78a6765b5b715e0d">firstKid</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return first kid item  <a href="#adad4d58b1fcf860b78a6765b5b715e0d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a76f8d8cc6f85dcee98b9c89c12150009">isPartOfAChain</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">tell if this item is part of a chain or not  <a href="#a76f8d8cc6f85dcee98b9c89c12150009"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a3d98e77f961ce594a34f6e7b72a511e3">kidsCount</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return number of kids  <a href="#a3d98e77f961ce594a34f6e7b72a511e3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#adf474911d6881e734d8159c587d188c2">kid</a> (int i_nth)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">return nth kid item  <a href="#adf474911d6881e734d8159c587d188c2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a24b7ed7f4581c52182f0146b80f04892">index</a> (const <a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *pFth) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the index of a particular item inside this (father)  <a href="#a24b7ed7f4581c52182f0146b80f04892"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a04e5779e112d4bab9433537af210c006">myIndex</a> (void) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the index of this item inside the father  <a href="#a04e5779e112d4bab9433537af210c006"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Inserting items in chain</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#ad140c13928ecef01bec9478071c9a9f5">append</a> (<a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *new_kid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">inserts an item as last kid  <a href="#ad140c13928ecef01bec9478071c9a9f5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a78f3a6a05e53ebdda5557b28a6359b34">prepend</a> (<a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *new_kid)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">inserts an item as first kid  <a href="#a78f3a6a05e53ebdda5557b28a6359b34"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a7607c4cf034a4fd65b557416c9e89bc0">insAfter</a> (<a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *pNew)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">insert an item after this item  <a href="#a7607c4cf034a4fd65b557416c9e89bc0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a66f2d259452f23a90f6bbc6017378848">insBefore</a> (<a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *pNew)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">insert an item before this item  <a href="#a66f2d259452f23a90f6bbc6017378848"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a4e77583a91d1e64c4a16cb3696875397">extract</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">extract this item from the chain  <a href="#a4e77583a91d1e64c4a16cb3696875397"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#ae86e6b9c42573611237644231ef916ea">prev_item</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">pointer to previous sibling item  <a href="#ae86e6b9c42573611237644231ef916ea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a446c37389f5536f626821713a13eac65">next_item</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">pointer to previous sibling item  <a href="#a446c37389f5536f626821713a13eac65"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a137e55c064669b2d07be6c5736795513">father_item</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">pointer to father item  <a href="#a137e55c064669b2d07be6c5736795513"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a68c07bd0fe54243891fca292c4bbef55">first_kid</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">pointer to first kid item  <a href="#a68c07bd0fe54243891fca292c4bbef55"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a209ddf0efbff8c383c3ed8296f1cb3f0">kids_count</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">number of direct kids  <a href="#a209ddf0efbff8c383c3ed8296f1cb3f0"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>the QModelIndex has internalPointer() either NULL or pointing to a class tha inherits this one </p>
<h2><a class="anchor" id="new_del"></a>
Creation and destruction</h2>
<p>The constructor for this class only initialises itself. No chain can be appended at the moment of creation. Destruction code does not free internal items as some may be embedded. Each inheritant must free it's kids.</p>
<p>The <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a343f1361495354b93e084f625ff7bb84" title="remove all items from this list by deleting them">erase()</a> function is public and may be used at any time to clean the list and delete all items in it (freeing of memory included).</p>
<h2><a class="anchor" id="retrieve_item"></a>
Retrieveing an item</h2>
<p>To get a kid at a particular 0 based index use <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#adf474911d6881e734d8159c587d188c2" title="return nth kid item">kid()</a>. First item in the chain may be found using <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#adad4d58b1fcf860b78a6765b5b715e0d" title="return first kid item">firstKid()</a>.</p>
<h2><a class="anchor" id="informative"></a>
Informative functions</h2>
<p>Neighbours item are retrieved using <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#ad0b25e2c26ab42d127bff1faed1c38e6" title="return next item">next()</a> and <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a85d9e780376f407ace6bb12961956b2a" title="return previous item">prev()</a> and the parent item using <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a1bb5d7d40ea9fee2dff5170089850d2c" title="return father item">father()</a>. To get the number of items that are hosted inside a chain use the <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a3d98e77f961ce594a34f6e7b72a511e3" title="return number of kids">kidsCount()</a> function. To find out if the item is part of a chain use the <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a76f8d8cc6f85dcee98b9c89c12150009" title="tell if this item is part of a chain or not">isPartOfAChain()</a> function, that returns true if it is. A similar function is <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a24b7ed7f4581c52182f0146b80f04892" title="gets the index of a particular item inside this (father)">index()</a>, that returns the 0 based index of the kid inside this father, and <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a04e5779e112d4bab9433537af210c006" title="gets the index of this item inside the father">myIndex()</a>, that returns the index of this item inside it's parent (if the item is not top level).</p>
<h2><a class="anchor" id="adding_it"></a>
Adding items</h2>
<p>Items may be <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#ad140c13928ecef01bec9478071c9a9f5" title="inserts an item as last kid">append()</a> -ed, <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a78f3a6a05e53ebdda5557b28a6359b34" title="inserts an item as first kid">prepend()</a> -ed to the chain or insert before (using <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a66f2d259452f23a90f6bbc6017378848" title="insert an item before this item">insBefore()</a>) or after (using <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a7607c4cf034a4fd65b557416c9e89bc0" title="insert an item after this item">insAfter()</a>) this item. These functions check if the item is already part of a chain and, if so, they use <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a4e77583a91d1e64c4a16cb3696875397" title="extract this item from the chain">extract()</a> first againt it.</p>
<h2><a class="anchor" id="removing_it"></a>
Removing items</h2>
<p>To extract an item from the chain WITHOUT deleting the item, <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a4e77583a91d1e64c4a16cb3696875397" title="extract this item from the chain">extract()</a> function is used. <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a343f1361495354b93e084f625ff7bb84" title="remove all items from this list by deleting them">erase()</a> is used to delete the kids but it does not propagate recursivelly.</p>
<h2><a class="anchor" id="assoc_data"></a>
Associated data</h2>
<p>The class also hosts a pure virtual function to retrieve associated <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a3a0f603992a06338cde961bbf14f5b2c" title="data associated with column i_nth">data()</a>; The implementation needs to examine the column that is requested and to properly return a value (that may be QVariant() if nothing is to be returned). </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00106">106</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="af7b9265e9bdc52517cd2d65ce14eec94"></a><!-- doxytag: member="DDHC::MdlItem::ItTypes" ref="af7b9265e9bdc52517cd2d65ce14eec94" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94">DDHC::MdlItem::ItTypes</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="af7b9265e9bdc52517cd2d65ce14eec94a969bdd13d9b7dc17095eb56fd303296b"></a><!-- doxytag: member="ITY_CLASS_LIST" ref="af7b9265e9bdc52517cd2d65ce14eec94a969bdd13d9b7dc17095eb56fd303296b" args="" -->ITY_CLASS_LIST</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af7b9265e9bdc52517cd2d65ce14eec94a946968ee8473a7ca27a6ba67c4e7effa"></a><!-- doxytag: member="ITY_TREE" ref="af7b9265e9bdc52517cd2d65ce14eec94a946968ee8473a7ca27a6ba67c4e7effa" args="" -->ITY_TREE</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af7b9265e9bdc52517cd2d65ce14eec94ab16e0b2e456e7e85e5ca7a6517d33e63"></a><!-- doxytag: member="ITY_ACLASS" ref="af7b9265e9bdc52517cd2d65ce14eec94ab16e0b2e456e7e85e5ca7a6517d33e63" args="" -->ITY_ACLASS</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af7b9265e9bdc52517cd2d65ce14eec94a2fbb39b5bb685cff30a853a7f8a26960"></a><!-- doxytag: member="ITY_CLASS_INST" ref="af7b9265e9bdc52517cd2d65ce14eec94a2fbb39b5bb685cff30a853a7f8a26960" args="" -->ITY_CLASS_INST</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="af7b9265e9bdc52517cd2d65ce14eec94a6347e77becbc59224c8e976c34c3ce90"></a><!-- doxytag: member="ITY_VAR" ref="af7b9265e9bdc52517cd2d65ce14eec94a6347e77becbc59224c8e976c34c3ce90" args="" -->ITY_VAR</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00116">116</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af8da53df27af2c39f84ea7a2f98b3009"></a><!-- doxytag: member="DDHC::MdlItem::MdlItem" ref="af8da53df27af2c39f84ea7a2f98b3009" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MdlItem::MdlItem </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>constructor </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00065">65</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="aa7085b4339fbcce85aff9b486be1985a"></a><!-- doxytag: member="DDHC::MdlItem::~MdlItem" ref="aa7085b4339fbcce85aff9b486be1985a" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MdlItem::~MdlItem </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>destructor </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00077">77</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad140c13928ecef01bec9478071c9a9f5"></a><!-- doxytag: member="DDHC::MdlItem::append" ref="ad140c13928ecef01bec9478071c9a9f5" args="(MdlItem *new_kid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MdlItem::append </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td>
          <td class="paramname"><em>new_kid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>inserts an item as last kid </p>
<p>if the item is part of a chain (<a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a76f8d8cc6f85dcee98b9c89c12150009" title="tell if this item is part of a chain or not">isPartOfAChain()</a> == true) it is first <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a4e77583a91d1e64c4a16cb3696875397" title="extract this item from the chain">extract()</a> -ed from there </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00190">190</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a3a0f603992a06338cde961bbf14f5b2c"></a><!-- doxytag: member="DDHC::MdlItem::data" ref="a3a0f603992a06338cde961bbf14f5b2c" args="(int i_nth)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual QVariant DDHC::MdlItem::data </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i_nth</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>data associated with column i_nth </p>

<p>Implemented in <a class="el" href="class_d_d_h_c_1_1_a_class.html#afffc7e7478a80e6eea85fc33bf69472a">DDHC::AClass</a>, <a class="el" href="class_d_d_h_c_1_1_classes.html#af653dd60e4ea4fa025b7f074bc48464e">DDHC::Classes</a>, <a class="el" href="class_d_d_h_c_1_1_c_inst.html#aca4a1101b36d71639bbeab57926a9743">DDHC::CInst</a>, <a class="el" href="class_d_d_h_c_1_1_tree.html#ab6695c82f67910cf2335021f5061aed9">DDHC::Tree</a>, and <a class="el" href="class_d_d_h_c_1_1_var_inst.html#ae309ce51a7de64a12657cf6b61ccead0">DDHC::VarInst</a>.</p>

</div>
</div>
<a class="anchor" id="afe9d651b225320f91c8263ff88d06980"></a><!-- doxytag: member="DDHC::MdlItem::dbgDump" ref="afe9d651b225320f91c8263ff88d06980" args="(int indent=0) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MdlItem::dbgDump </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>indent</em> = <code>0</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>print the content of this object to debug output </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00257">257</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a343f1361495354b93e084f625ff7bb84"></a><!-- doxytag: member="DDHC::MdlItem::erase" ref="a343f1361495354b93e084f625ff7bb84" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MdlItem::erase </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>remove all items from this list by deleting them </p>
<p>This function assumes that the elements were allocated using new() and it deletes them using delete). </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00242">242</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a4e77583a91d1e64c4a16cb3696875397"></a><!-- doxytag: member="DDHC::MdlItem::extract" ref="a4e77583a91d1e64c4a16cb3696875397" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MdlItem::extract </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>extract this item from the chain </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00162">162</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a1bb5d7d40ea9fee2dff5170089850d2c"></a><!-- doxytag: member="DDHC::MdlItem::father" ref="a1bb5d7d40ea9fee2dff5170089850d2c" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* DDHC::MdlItem::father </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return father item </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00191">191</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="adad4d58b1fcf860b78a6765b5b715e0d"></a><!-- doxytag: member="DDHC::MdlItem::firstKid" ref="adad4d58b1fcf860b78a6765b5b715e0d" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* DDHC::MdlItem::firstKid </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return first kid item </p>

<p>Reimplemented in <a class="el" href="class_d_d_h_c_1_1_a_class.html#abd2a678ddce97a5688707cba4d7e5002">DDHC::AClass</a>, <a class="el" href="class_d_d_h_c_1_1_classes.html#af76db09d0119239b09abebf44e67820c">DDHC::Classes</a>, and <a class="el" href="class_d_d_h_c_1_1_tree.html#ad82803c84f46b670d710c82d80b62439">DDHC::Tree</a>.</p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00196">196</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="a24b7ed7f4581c52182f0146b80f04892"></a><!-- doxytag: member="DDHC::MdlItem::index" ref="a24b7ed7f4581c52182f0146b80f04892" args="(const MdlItem *pFth) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MdlItem::index </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td>
          <td class="paramname"><em>pFth</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>gets the index of a particular item inside this (father) </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00097">97</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a7607c4cf034a4fd65b557416c9e89bc0"></a><!-- doxytag: member="DDHC::MdlItem::insAfter" ref="a7607c4cf034a4fd65b557416c9e89bc0" args="(MdlItem *pNew)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MdlItem::insAfter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td>
          <td class="paramname"><em>pNew</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>insert an item after this item </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00113">113</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a66f2d259452f23a90f6bbc6017378848"></a><!-- doxytag: member="DDHC::MdlItem::insBefore" ref="a66f2d259452f23a90f6bbc6017378848" args="(MdlItem *pNew)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MdlItem::insBefore </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td>
          <td class="paramname"><em>pNew</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>insert an item before this item </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00135">135</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a76f8d8cc6f85dcee98b9c89c12150009"></a><!-- doxytag: member="DDHC::MdlItem::isPartOfAChain" ref="a76f8d8cc6f85dcee98b9c89c12150009" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DDHC::MdlItem::isPartOfAChain </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>tell if this item is part of a chain or not </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00201">201</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="adf474911d6881e734d8159c587d188c2"></a><!-- doxytag: member="DDHC::MdlItem::kid" ref="adf474911d6881e734d8159c587d188c2" args="(int i_nth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> * MdlItem::kid </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i_nth</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return nth kid item </p>

<p>Reimplemented in <a class="el" href="class_d_d_h_c_1_1_a_class.html#ad70e32e55d7eb6bd57b78feae22d7934">DDHC::AClass</a>, <a class="el" href="class_d_d_h_c_1_1_classes.html#a7a6815f9d53f05ab47c207bf049fa43a">DDHC::Classes</a>, and <a class="el" href="class_d_d_h_c_1_1_tree.html#afc97f102c4bfda7061551f4e534b2709">DDHC::Tree</a>.</p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00083">83</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a3d98e77f961ce594a34f6e7b72a511e3"></a><!-- doxytag: member="DDHC::MdlItem::kidsCount" ref="a3d98e77f961ce594a34f6e7b72a511e3" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DDHC::MdlItem::kidsCount </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return number of kids </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00206">206</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="a04e5779e112d4bab9433537af210c006"></a><!-- doxytag: member="DDHC::MdlItem::myIndex" ref="a04e5779e112d4bab9433537af210c006" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DDHC::MdlItem::myIndex </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>gets the index of this item inside the father </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00219">219</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad0b25e2c26ab42d127bff1faed1c38e6"></a><!-- doxytag: member="DDHC::MdlItem::next" ref="ad0b25e2c26ab42d127bff1faed1c38e6" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* DDHC::MdlItem::next </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return next item </p>

<p>Reimplemented in <a class="el" href="class_d_d_h_c_1_1_a_class.html#aecc40cc4d63ac43adc8fb259d3245f40">DDHC::AClass</a>, <a class="el" href="class_d_d_h_c_1_1_c_inst.html#a488f5d3f34cb2923192e2c55b62da93c">DDHC::CInst</a>, and <a class="el" href="class_d_d_h_c_1_1_var_inst.html#a64f2c3ca7f2218f9e345e7cd2baa05e2">DDHC::VarInst</a>.</p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00181">181</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="a78f3a6a05e53ebdda5557b28a6359b34"></a><!-- doxytag: member="DDHC::MdlItem::prepend" ref="a78f3a6a05e53ebdda5557b28a6359b34" args="(MdlItem *new_kid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MdlItem::prepend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a> *&#160;</td>
          <td class="paramname"><em>new_kid</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>inserts an item as first kid </p>
<p>if the item is part of a chain (<a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a76f8d8cc6f85dcee98b9c89c12150009" title="tell if this item is part of a chain or not">isPartOfAChain()</a> == true) it is first <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a4e77583a91d1e64c4a16cb3696875397" title="extract this item from the chain">extract()</a> -ed from there </p>

<p>Definition at line <a class="el" href="item__ddhc_8cc_source.html#l00218">218</a> of file <a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a>.</p>

</div>
</div>
<a class="anchor" id="a85d9e780376f407ace6bb12961956b2a"></a><!-- doxytag: member="DDHC::MdlItem::prev" ref="a85d9e780376f407ace6bb12961956b2a" args="(void) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* DDHC::MdlItem::prev </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>return previous item </p>

<p>Reimplemented in <a class="el" href="class_d_d_h_c_1_1_a_class.html#ae2369b65a8b706c2b437c82bac3731ff">DDHC::AClass</a>, <a class="el" href="class_d_d_h_c_1_1_c_inst.html#a397065ff308030b678782537a16937fa">DDHC::CInst</a>, and <a class="el" href="class_d_d_h_c_1_1_var_inst.html#acc8cc272a989ff95fbef7887961128d4">DDHC::VarInst</a>.</p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00186">186</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="a752a6e2bb494c8d9b309b720f1c7f5df"></a><!-- doxytag: member="DDHC::MdlItem::type" ref="a752a6e2bb494c8d9b309b720f1c7f5df" args="(void)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#af7b9265e9bdc52517cd2d65ce14eec94">ItTypes</a> DDHC::MdlItem::type </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>item's type </p>

<p>Implemented in <a class="el" href="class_d_d_h_c_1_1_a_class.html#a1a922b431b221c8e3edc3f12dc0b368f">DDHC::AClass</a>, <a class="el" href="class_d_d_h_c_1_1_classes.html#a7f01750b6a0d22d8196baec0b7c655e6">DDHC::Classes</a>, <a class="el" href="class_d_d_h_c_1_1_c_inst.html#af157a9c4c355b14efc69c728d1afefd7">DDHC::CInst</a>, <a class="el" href="class_d_d_h_c_1_1_tree.html#a55c494d4750e93dbd91e678a121ab1e0">DDHC::Tree</a>, and <a class="el" href="class_d_d_h_c_1_1_var_inst.html#a775b253799e6fcb333939a4df5bf1153">DDHC::VarInst</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a137e55c064669b2d07be6c5736795513"></a><!-- doxytag: member="DDHC::MdlItem::father_item" ref="a137e55c064669b2d07be6c5736795513" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a137e55c064669b2d07be6c5736795513">DDHC::MdlItem::father_item</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>pointer to father item </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00145">145</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="a68c07bd0fe54243891fca292c4bbef55"></a><!-- doxytag: member="DDHC::MdlItem::first_kid" ref="a68c07bd0fe54243891fca292c4bbef55" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a68c07bd0fe54243891fca292c4bbef55">DDHC::MdlItem::first_kid</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>pointer to first kid item </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00149">149</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="a209ddf0efbff8c383c3ed8296f1cb3f0"></a><!-- doxytag: member="DDHC::MdlItem::kids_count" ref="a209ddf0efbff8c383c3ed8296f1cb3f0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a209ddf0efbff8c383c3ed8296f1cb3f0">DDHC::MdlItem::kids_count</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>number of direct kids </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00153">153</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="a446c37389f5536f626821713a13eac65"></a><!-- doxytag: member="DDHC::MdlItem::next_item" ref="a446c37389f5536f626821713a13eac65" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#a446c37389f5536f626821713a13eac65">DDHC::MdlItem::next_item</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>pointer to previous sibling item </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00141">141</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae86e6b9c42573611237644231ef916ea"></a><!-- doxytag: member="DDHC::MdlItem::prev_item" ref="ae86e6b9c42573611237644231ef916ea" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>* <a class="el" href="class_d_d_h_c_1_1_mdl_item.html#ae86e6b9c42573611237644231ef916ea">DDHC::MdlItem::prev_item</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>pointer to previous sibling item </p>

<p>Definition at line <a class="el" href="item__ddhc_8h_source.html#l00137">137</a> of file <a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="item__ddhc_8h_source.html">item_ddhc.h</a></li>
<li><a class="el" href="item__ddhc_8cc_source.html">item_ddhc.cc</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>DDHC</b>      </li>
      <li class="navelem"><a class="el" href="class_d_d_h_c_1_1_mdl_item.html">MdlItem</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

    <li class="footer">Generated on Sun Oct 23 2011 22:06:50 for EquTemper by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
   </ul>
 </div>
</body>
</html>
